home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 014 / dcwhere.arc / DCWHERE.DOC next >
Encoding:
Text File  |  1986-10-24  |  13.6 KB  |  361 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.                                     DCWHERE
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.                                              Copyright 1986 David A. Craig
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.                                           1
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.           DCWHERE displays information about all occurrences of a  filename
  69.           regardless  of  which  hard  disk  or  directory  the filename is
  70.           located.  Its main use is to find that file that you are sure you
  71.           created but is not where it is supposed to be.
  72.                This  product  is  made  available  through  the   shareware
  73.           concept.  Please feel free to copy and pass it on to friends.  Be
  74.           sure  to  copy both the program and documentation.   This program
  75.           and  documentation  are   copyrighted   and   modifications   are
  76.           forbidden.   I plan to present several utility programs under the
  77.           shareware concept.   If you feel that this program is of value to
  78.           you  and  would like to see more a five dollar contribution would
  79.           be appreciated.
  80.                            David A Craig
  81.                            3051 Bomar Rd.
  82.                            Douglasville, Ga.  30135
  83.           If you have ideas  on  how  to  improve  this  product  or  other
  84.           utilities please send them to me.   If I use them I will send you
  85.           a copy of the new or improved utility.  If you are an employee of
  86.           the State of Georgia and are using this for state business use do
  87.           not send in a contribution.  This utility is a gift for your use.
  88.           The  proper  syntax  for  using  DCWHERE  is  DCWHERE  (filename)
  89.           (option).  Filename is any valid DOS filename including the ? and
  90.           *  wildcards.  A  filename is composed of 1 to 8 characters which
  91.           can be followed  by  a  period  and  a  one  to  three  character
  92.           extension.  Option does not have to be entered.  If you have more
  93.           than one hard disk and want to search only one, enter -D followed
  94.           by  the  drive letter that you want to search after the filename.
  95.           The -D tells the program that  the  following  character  is  the
  96.           drive to be searched.   For example DCWHERE TEST????.BAT -DC.   A
  97.           second option can be entered to tell the program that you want to
  98.           see only those files that both match the filename  specified  and
  99.           the  attribute specified in the option.   E.G.  DCWHERE *.COM -AH
  100.           will search for all com files that are hidden.   The -A tells the
  101.           program  that  the following character is the attribute to match.
  102.           You can specify both a drive to be searched and an  attribute  to
  103.           match.    The options can be specified in any order but they must
  104.           have a space between them.  The attributes are as follows:
  105.                     H  Hidden file.
  106.                     S  System file
  107.                     R  Read only file
  108.                     A  Archived file
  109.           If you have a color display the information will be displayed  as
  110.           yellow  characters on a blue background.   This color combination
  111.           cannot be changed.   The filename and options can be  entered  in
  112.           upper  or  lower  case  letters.   All filenames are converted to
  113.           upper case before being checked for matches.  The ?  character is
  114.           special  in  that  it will match any one character in a filename.
  115.           The following list illustrates how the ? wild card works.
  116.                TEST?.DAT         TEST4.dat         match
  117.                TEST?.dat         TEST.dat          match
  118.                TEST?.EXE         TEST12.EXE        do not match
  119.  
  120.                                           2
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.                TEST.?AT          TEST.BAT          match
  128.                TEST.?AT          TEST.DAT          match
  129.           The * character is also a wildcard character.    It  matches  all
  130.           remaining  characters in a filename or extension.   The following
  131.           list illustrates the use of the * wildcard
  132.                *.*               TEST.EXE          match
  133.                *.*               FROG.DAT          match
  134.                *.dat             MAIN.DAT          match
  135.                *.DAT             MAIN.BAT          do not match
  136.                TEST*             TEST23            match
  137.                TEST.*            TEST.BAT          match
  138.                TEST.*            TEST.EXE          match
  139.           DCWHERE *.* matches all files.   DCWHERE *.bat matches all  files
  140.           with an extension of BAT.  DCWHERE TEST.* matches all files whose
  141.           filename   is   TEST  regardless  of  the  extension.     DCWHERE
  142.           TEST????.dat will list all files whose extension is DAT and whose
  143.           first four characters are TEST.    The  remaining  four  possible
  144.           characters can either be absent or any character and still match.
  145.  
  146.                The screen is laid out in four columns as is shown below
  147.  
  148.                  LOCATION         DATE LAST MODIFIED  SIZE    ATTRIBUTE
  149.                C:\IBMBIOS.COM           8/22/85      341256       RSHA
  150.                C:\IBMDOS.COM            8/22/85      221945       RSHA
  151.                C:\TEST.COM              7/12/86         451       A
  152.                C:\DBASE\DBASE.COM       4/22/85       12334       A
  153.  
  154.           Column  one is the location and name of the file that matches the
  155.           filename       specified.               Its       format       is
  156.           DRIVE:\DIRECTORY1\DIRECTORY2\FILENAME.    Column  two is the date
  157.           the file was last modified.  Column three is the size in bytes of
  158.           the file.   The date and size information is the same as the  DIR
  159.           command  will  give.    Column four is the attribute bytes of the
  160.           file.   H means that the file is HIDDEN.   It will  not  show  up
  161.           using  a  DIR  command.   S means SYSTEM.   Files with the SYSTEM
  162.           attribute set will not show up with a DIR command.   R means READ
  163.           ONLY.    This file cannot be modified or deleted.   The ATTRIBUTE
  164.           command can be used to change this attribute.   A means  ARCHIVE.
  165.           This  means that the file has been modified since the last BACKUP
  166.           command was used.   It has no real significance outside of  being
  167.           used in the BACKUP command.   A file can and often does have more
  168.           that one attribute  set.    Line  23  of  the  screen  shows  the
  169.           directories  as  they  are  being  searched.    Line 24 will show
  170.           continuation and error messages.  If there are 19 or more matches
  171.           the program will pause and ask if you want to continue searching.
  172.           Pressing any key but N or n will continue searching.
  173.  
  174.                ERROR MESSAGES
  175.  
  176.           Backslash in file  name  ----  The  program  will  check  in  all
  177.           directories.  Since the backslash marks a directory it should not
  178.           be included in a filename.   Re-Enter the  filename  without  the
  179.  
  180.                                           3
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.           directory information and backslash.  DCWHERE \DOS\*.COM  (wrong)
  188.           DCWHERE *.COM  (correct)
  189.  
  190.           Drive identifier in file name ---- The program will always search
  191.           the all hard drives.  Therefor the drive identifier should not be
  192.           entered. DCWHERE c:*.bat   (wrong)    DCWHERE *.bat  (correct)
  193.  
  194.           File name too long ---- DOS limits file names to eight characters
  195.           optionally  followed by a period and a three character extension.
  196.           Re-Enter a valid file name.   DCWHERE test1234b  (wrong)  DCWHERE
  197.           test1234.b (correct)
  198.  
  199.           File  extension too long ---- DOS limits the number of characters
  200.           following the period in a file name to three.   Re-Enter  with  a
  201.           valid extension.  DCWHERE *.test (wrong) DCWHERE *.tst (correct)
  202.  
  203.           Only  two  '*'  characters  allowed ---- DOS handles only one '*'
  204.           wildcard before the period and one after the  period.    Re-Enter
  205.           using  only one '*' on either side of the period.  DCWHERE *sd*.*
  206.           (wrong) DCWHERE ?sd*.* (correct).
  207.  
  208.           Only one '*' character allowed after period ---- DOS handles only
  209.           one '*' wildcard character after the period.   The second one  is
  210.           ignored.     Re-Enter  using  only  one  '*'  after  the  period.
  211.           DCWHERE dbase.**  (wrong)   DCWHERE dbase.*  (correct)
  212.  
  213.           Both '*' characters appear before the period ----  There  can  be
  214.           only one '*' wildcard character before the period.  Re-Enter with
  215.           only  one  '*'  before  the  period.    DCWHERE *123*.wks (wrong)
  216.           DCWHERE ?123*.wks (correct)
  217.  
  218.           Invalid option specified --- You have forgotten  to  precede  the
  219.           option with a -,  or are specifying a type of option other than A
  220.           or D,  or are specifying a drive not in the range of A through Z,
  221.           or  an  attribute  other than A,H,S,or R.   Re-Enter with a valid
  222.           option.
  223.  
  224.           Return code not found ---- Internal programming problem.   Please
  225.           send  the  example to me at the address in the first part of this
  226.           documentation.
  227.  
  228.           No files found on disk ---- This is a newly formatted  disk  with
  229.           no files on it to search through.  Use the command on a disk with
  230.           files already in place.
  231.  
  232.           Only  60  directories  can be searched ----  There is an internal
  233.           limit of 60 directories that can be searched by this program.
  234.  
  235.           No file specified to look for ----    You  did  not  include  the
  236.           filename  to  be  searched for,  or placed the options before the
  237.           filename.   Re-Enter with a file name.          DCWHERE   (wrong)
  238.           DCWHERE *.bat (correct)
  239.  
  240.                                           4
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.           No  files  are  present  that  match (filename) ----  The program
  249.           could not find any files that match the filename specified.    It
  250.           is not on the hard disk.
  251.  
  252.           All  directories  searched  ---- The program has finished looking
  253.           through all the directories on the hard disk.
  254.  
  255.                GLOSSARY
  256.  
  257.           Attribute -- Dos has four indicators that it saves for each  file
  258.           called Attributes.   They tell whether the file is a System file,
  259.           Hidden file,  or Read Only file.    The  fourth  indicator  tells
  260.           whether the file has been changed since it was last backed up.
  261.  
  262.           Backup  --    The  DOS  command  used to copy files to the floppy
  263.           diskettes for backup  purposes.    This  program  turns  off  the
  264.           Archive  indicator  for  the  files  copied.   Files copied using
  265.           Backup can only be restored using the Restore command.
  266.  
  267.           Directory -- A collection  of  related  files  that  usually  are
  268.           involved with one type of work.  A directory can be thought of as
  269.           a file drawer in a filing cabinet.  The cabinet is the hard disk.
  270.           Each  area  has  its  own drawer to keep its information separate
  271.           from the other areas.   This makes it easier to  search  through.
  272.           Using the Tree command will display the directory structure.
  273.  
  274.           DOS  --  Disk  Operating  System.   This is a program that is the
  275.           gateway into the computer.   It loads and executes programs  plus
  276.           gives you a collection of utilities to manage your computer.  You
  277.           can tell its there when you see the C:> prompt.
  278.  
  279.           Extension  --  A  filename  can have one to eight characters as a
  280.           filename and optionally have a period and one to three characters
  281.           as an extension.  Generally extensions tell what type of file you
  282.           are dealing with.
  283.  
  284.           Filename -- A filename can have one to eight characters as a name
  285.           and optionally have a period and one to three  characters  as  an
  286.           extension.  They are how we distinguish files from each other.
  287.  
  288.           Hidden -- The attribute that controls whether a file will display
  289.           when the Dir is used.   Also a file with the hidden attribute set
  290.           cannot be deleted or copied using Dos commands.
  291.  
  292.           Read Only -- The attribute that controls the access  to  a  file.
  293.           If  a  file is Read Only it cannot be deleted or copied using Dos
  294.           commands.  It can be viewed and executed.
  295.  
  296.           System -- The attribute that specifies files  that  are  part  of
  297.           DOS.  Has also been used in some copy protection schemes.  System
  298.           files  cannot  be deleted or copied using Dos commands other than
  299.  
  300.                                           5
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307.           Sys to transfer the system to a disk(ette)  and  Formatting  with
  308.           the \s option to transfer the system.
  309.  
  310.           Wildcard  -- Either the '?' or '*' character in a filename.   The
  311.           '?' wildcard will match any one character in  a  filename  to  be
  312.           matched with.  It will also match the absence of a character in a
  313.           filename.  The '*' wildcard matched all remaining characters in a
  314.           filename  or  extension in the same manner that the '?' matches a
  315.           single character.   Both types of wildcards can be used  together
  316.           in the same filename.
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.  
  335.  
  336.  
  337.  
  338.  
  339.  
  340.  
  341.  
  342.  
  343.  
  344.  
  345.  
  346.  
  347.  
  348.  
  349.  
  350.  
  351.  
  352.  
  353.  
  354.  
  355.  
  356.  
  357.  
  358.  
  359.  
  360.                                           6